<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>SoftwareInfoEdit.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/css/ext-all.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/ext-base.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/ext-all.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
<!--
Ext.onReady(function(){
	var formAction='${pageContext.request.contextPath}/softwareInfo.html?action=save';

    var form = new Ext.form.FormPanel({
         baseCls: 'x-plain',
        labelWidth: 55,
        url:'save-form.php',
        defaultType: 'textfield',
		fileUpload: true,
        items: [{
            fieldLabel: 'Send To',
            name: 'to',
            anchor:'100%'  // anchor width by percentage
        },{
            fieldLabel: 'file',
            name: 'file',
            inputType:'file',
            anchor: '100%'  // anchor width by percentage
        }, {
            xtype: 'textarea',
            hideLabel: true,
            name: 'msg',
            anchor: '100% -53'  // anchor width by percentage and height by raw adjustment
        }],
        buttons: [{
            text: '保存',
            handler:function(){
            	form.getForm().submit({
            		url:formAction,
            		fileUpload: true,
            		waitMsg:'Saving Data...'});
            	form.getForm().reset();
            }
        },{
            text: '重置',
            handler:function(){
            	form.getForm().reset();
            }
        }]
    });

    var window = new Ext.Window({
        title: '软件信息',
        width: 600,
        height:500,
        minWidth: 300,
        minHeight: 200,
        closable:false,
        layout: 'fit',
        plain:true,
        bodyStyle:'padding:5px;',
        buttonAlign:'center',
        items: form

        
    });

    window.show();
});
//-->
</script>
  </head>
  
  <body>
  	<div id="softwareInfoFormDiv"></div>
  	<div id="div_search"></div>
  	
  	asdf
  </body>
</html:html>
